projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06bd27f
)
(code_convert_string): Give decode_coding correct byte
author
Kenichi Handa
<handa@m17n.org>
Tue, 14 Apr 1998 01:06:44 +0000
(
01:06
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Tue, 14 Apr 1998 01:06:44 +0000
(
01:06
+0000)
length of source text.
src/coding.c
patch
|
blob
|
history
diff --git
a/src/coding.c
b/src/coding.c
index 0152b32729568ab3e6f7cd72da7a7a241d6fc6dc..e94cee5e2de9c0dbee3efe7800e1a463867a1eb6 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-4388,7
+4388,7
@@
code_convert_string (str, coding, encodep, nocopy)
? encode_coding (coding, XSTRING (str)->data + from,
buf + from, to_byte - from, len)
: decode_coding (coding, XSTRING (str)->data + from,
- buf + from, to - from, len));
+ buf + from, to
_byte
- from, len));
if (! encodep && result == CODING_FINISH_INCONSISTENT_EOL)
{
/* We simple try to decode the whole string again but without